package com.zzq.jenkins.jenkinstest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**

 */
@RestController
public class HelloController {

    @GetMapping("/name")
    public String name(@RequestParam(defaultValue = "JenkinsTest_name_") String name) {
        return name;
    }

    @GetMapping("/test_01")
    public String test_01() {
        return "success_test_01";
    }

    @GetMapping("/name_01")
    public String name_01(@RequestParam(defaultValue = "JenkinsTest001_name_01") String name) {
        return name;
    }


    @GetMapping("/test_02")
    public String test_02() {
        return "success_test_02";
    }


    @GetMapping("/name_02")
    public String name_02(@RequestParam(defaultValue = "JenkinsTest002_name_02") String name) {
        return name;
    }

    @GetMapping("/test_03")
    public String test_03() {
        return "success_test_03";
    }


    @GetMapping("/name_03")
    public String name_03(@RequestParam(defaultValue = "JenkinsTest003_name_03") String name) {
        return name;
    }
}


